{template header}
{template nav}
<div class="area">
    	<div class="leftcon1">
        	<div class="con1t">
            	<div class="seach">
<select name="brand1" id="brand1" onchange="get_brand(this)" class="select_box1"><option value="0">请选择品牌...</option>{get_brands_parent(2,0)} </select>
<select name="brand2" id="brand2" class="select_box1"><option value="0">请选择车系...</option></select>

  <button class="mr" onclick="search_car()">搜索</button>
      
 		<input class="seachinput" id="kw" type="text" />
			<button onclick="c_search()">搜索</button>
		 
			</div>
			{php $hotcate=get_hot_brand(2,8);}
			<p>热门品牌：
			{loop $hotcate $hot}
			{loop $hot $k $v}
			<a href="{url index.php?m=car&f=buy&bid=$k}" target="_blank">{$v['catename']}</a>&nbsp;&nbsp;
			{/loop}
			{/loop}
			</p>
            </div>
            <ul class="carmodel"> 
             {php $cates=get_category_by_type(1);}
              {php $i=1;}
 {loop $cates $v}
<li class="s{echo $i++}"><a href="{url index.php?m=car&f=buy&cid=$v[cid]}" target="_blank" >{$v['catename']}</a></li>
{/loop}
            </ul>
            <p>价格区间&gt;
            &nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=1}" target="_blank">3万以下</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=2}" target="_blank">3-5万</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=3}" target="_blank">5-10万</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=4}" target="_blank">10-15万</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=5}" target="_blank">15-20万</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=6}" target="_blank">20-50万</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&pri=7}" target="_blank">50万以上</a>
            </p>
            <p>表显里程&gt;
            &nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&lic=1}" target="_blank">1万公里以内</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&lic=2}" target="_blank">1-3万公里</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&lic=3}" target="_blank">3-6万公里</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&lic=4}" target="_blank">6-10万公里</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&lic=5}" target="_blank">10万公里以上</a>
</p>
            <p>使用年限&gt;&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&yr=1}" target="_blank">1年以内</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&yr=2}" target="_blank">1-3年</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&yr=3}" target="_blank">3-5年</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&yr=4}" target="_blank">5-8年</a>
&nbsp;&nbsp;<a href="{url index.php?m=car&f=buy&yr=5}" target="_blank">8年以上</a>
</p>
        </div>
        
        <div class="right">
        	<div class="rbox hg1">
            	<a class="toolbtn" target="_blank" href="{url index.php?m=car&f=addcar}" rel="nofollow">免费发布卖车信息</a>
                <a class="toolbtn btn2" target="_blank" href="{url index.php?m=car&f=qiugouadd}" rel="nofollow">免费发布求购信息</a>
        <!--小导航 开始-->
 
	<ul class="tool">
                	<li class="s1"><a href="{url index.php?m=car&f=page&id=12}" target="_blank">注意事项</a></li>
                    <li class="s2"><a target="_blank" href="{url index.php?m=car&f=pinggu}">价格评估</a></li>
                    <li class="s3"><a target="_blank" href="{url index.php?m=car&f=gonglei}">买车攻略</a></li>
                    <li class="s1"><a target="_blank" href="{url index.php?m=car&f=page&id=9}">过户手续</a></li>
                    <li class="s2"><a target="_blank" href="{url index.php?m=car&f=page&id=10}">常见问题</a></li>
                    <li class="s3"><a href="{url index.php?m=car&f=page&id=11}" target="_blank">维权投诉</a></li>
 </ul>
    
	
<!--小导航  结束-->
</div>
        </div>
</div>
<div class="area">
 
<!--二手车首页焦点图 开始-->
 
<div class="left2">
    	<div class="tit"><h2></h2></div>
        <div class="focus_Img_div">
        <div class="focus_Img_div" id="focus_Img">
        <div class="focus_Img"><a target="_blank" href="#"><img id="fi_player" class="fi_player" src=""></a></div>
        <a target="_blank" href="#"><img id="fi_player" class="fi_player" src=""></a>
        <div class="fi_tab"></div>
        <div class="fi_tt"><a target="_blank" href="#"></a></div>
        </div>
      </div>
    </div>
 <script type="text/javascript">
 var focus_Img_data=[{$img}];
                   function creat_focus_Img()
                   {
                            if(focus_Img_data.length!=0)
                            {
                                     $("#focus_Img .fi_player").attr("src",focus_Img_data[0].p);
                                     $("#focus_Img .fi_player").parent().attr("href",focus_Img_data[0].l);
                                     $("#focus_Img .fi_tt a").attr("href",focus_Img_data[0].l);
                                     $("#focus_Img .fi_tt a").html(focus_Img_data[0].t);
                                     for(var i=0;i<focus_Img_data.length;i++)
                                     {
                                         $("#focus_Img .fi_tab").append("<span>"+(i+1)+"</span>");                                    
                                     }
                                     $("#focus_Img .fi_tab span:first-child").attr("class","now");
                            }
                   }
                   creat_focus_Img();
                   var focus_Img_timer;
                   var focus_Img_times=5000;
                   function auto_focus_Img(n)
                   {
                            if( typeof(n)=="undefined")
                            {
                                     var span_now=$("#focus_Img .fi_tab span").index($("#focus_Img .fi_tab .now"));
                                     var span_l=$("#focus_Img .fi_tab span").length;
                                     var span_next=span_now+1;
                                     if(span_next==span_l)
                                               span_next=0;
                            }
                            else
                                     var span_next=n;
                            $("#focus_Img .fi_player").hide(); 
                            $("#focus_Img .fi_player").attr("src",focus_Img_data[span_next].p);
                            $("#focus_Img .fi_player").fadeIn("normal"); 
                            $("#focus_Img .fi_player").parent().attr("href",focus_Img_data[span_next].l);
                            $("#focus_Img .fi_tt a").attr("href",focus_Img_data[span_next].l);
                            $("#focus_Img .fi_tt a").html(focus_Img_data[span_next].t);
                            $("#focus_Img .fi_tab span").attr("class","");
                            $("#focus_Img .fi_tab span:nth-child("+(span_next+1)+")").attr("class","now");
                   }
                   $(document).ready(function(){
                            focus_Img_timer=setInterval("auto_focus_Img()",focus_Img_times);
                            $("#focus_Img .fi_tab span").mouseover( 
                                     function () { 
                                               clearInterval(focus_Img_timer);
                                               var span_now=$("#focus_Img .fi_tab span").index($(this));
                                               auto_focus_Img(span_now);
                                     } 
                            ); 
                            $("#focus_Img .fi_tab span").mouseout( function () { focus_Img_timer=setInterval
                            ("auto_focus_Img()",focus_Img_times); } ); 
                   }); 
                   </script>
 
 
 
<!--二手车首页焦点图结束-->

 
<!--二手车首页头条新闻开始-->
<div id="newslist" class="center2">
 
	<!--二手车首页头条新闻开始-->
     {php $topone=array_shift($top);}
 	<h3><a target="_blank" href="{url index.php?m=car&f=news&id=$topone[aid]}">{cut_str($topone['title'],38,'')}</a></h3>
	<ul>
	{loop $top $v}
		<li><a href='{url index.php?m=car&f=news&id=$v[aid]}' target='_blank'>{cut_str($v['title'],44,'')}</a><span>{gdate('m-d',$v['dateline'])}</span></li>
	{/if}
</ul>
	
	
	</div>
<!--二手车首页头条新闻结束-->   
 

<div class="rbox2">
    	<div class="rtit">
                	<h2>买卖技巧</h2><a href="{url index.php?m=car&f=news&cid=8}" target="_blank">查看更多&gt;&gt;</a>
                </div>
                
    <div class="pt">
            	<a target="_blank" href="{url index.php?m=car&f=news&id=$jiqiao_top[aid]}"><img width="106" height="70" src="{DATA_DIR}files/{$jiqiao_top['default_image']}"></a>
            <div class="pttxt">
            	<h3><a href="{url index.php?m=car&f=news&id=$jiqiao_top[aid]}" target="_blank">{cut_str($jiqiao_top['title'],14,'')}</a></h3>
                <p>{cut_str($jiqiao_top['summary'],46)}</p>
            </div>
                  </div>
        <ul class="list12">
        {loop $jiqiao $v}
            <li><a target="_blank" href="{url index.php?m=car&f=news&id=$v[aid]}">{cut_str($v['title'],42,'')}</a></li>
        {/loop}
            </ul>
    	
    </div>

</div> 

 
 
<DIV class=area></DIV>
 
 
<!-- 品牌二手车 start -->
 
<script> 
	function getDiv(flag){
		for(var i = 0;i<2;i++){
			if(i == flag){
				document.getElementById("brandDiv"+i).style.display = "";
				document.getElementById("brandLi"+i).className = "cur";
			}else{
				document.getElementById("brandDiv"+i).style.display = "none";
				document.getElementById("brandLi"+i).className = "";
			}
		}
	}
</script>
<div class="area">
	<div class="tit">
    	<h2>品牌二手车</h2>
    	{php $tuijian=get_brand_all_data(18,5);}
    	{php $tuijian_top=array_shift($tuijian['data']);}
    </div>
  
           <div class="tabbox" id="brandDiv0" >
    	<div class="piccon">
	    	<a href="{url index.php?m=car&f=buy&pid=$tuijian[pid]}" target="_blank"><img src="{echo DATA_DIR}files/{$tuijian_top['picture']}" width="158" height="100" /></a>
	    	<p style="height:50px;">&nbsp;&nbsp;&nbsp;&nbsp;{cut_str($tuijian['cates']['description'],74,'')}</p>
	        <a href="{url index.php?m=car&f=buy&pid=$tuijian[pid]}" target="_blank" class="more">查看更多车源&gt;&gt;</a>
	        <span class="more">&nbsp;&nbsp;&nbsp;&nbsp;</span>
        </div>
        <ul class="list1">
        {loop $tuijian['data'] $v}
                	<li>
        		<div class="vgcon">
        			<div class="vgbox">
	        			<a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="abox"><img width="150" height="100" class="boxc" alt="{$v['title']}" src="{echo DATA_DIR}files/{$v['picture']}"/>
	        			</a>
        			</div>
       			</div>
       			<p class="f14">
       				<a href="{url index.php?m=car&f=buy&id=$v[id]}" target="_blank" title="{$v['title']}">{cut_str($v['title'],38,'')}</a><br/>
       				<span class="red">{$v['price']} 万元</span>
       			</p>
       			<p>{gdate('Y年m月',$v['shangpai'])}上牌  {$v['licheng']}万公里 </p>
        	</li>
        	{/loop}
       	        </ul>
    </div>
    
   
    
    
</div>
<!-- 品牌二手车 end -->
<div class="area">
<div class="left1">
    	<div class="tit">
    		<h2>最新二手车</h2>
            <a href="{url index.php?m=car&f=buy}" target="_blank" class="more">查看更多&gt;&gt;</a>
        </div>
        <div class="lbox1">
        {php $newcars=get_new_cars(0,15);}
        	<ul class="list2">
        	{loop $newcars $v}
        	            	<li>
            		<div class="vgcon">
            			<div class="vgbox">
            				<a target="_blank" href="{url index.php?m=car&f=buy&bid=$v[id]}" class="abox">
           					
                    	<img width="120" height="80" class="boxc" alt="{$v['title']}" src="{echo DATA_DIR}files/{$v['picture']}"/>
                    	
            				</a>
            			</div>
            		</div>
            		<p>
            			<a href="{url index.php?m=car&f=buy&bid=$v[id]}" target="_blank" style="line-height:17px;height:16px; ">{cut_str($v['title'],38,'')}</a><br/>
            			<span class="red">{$v['price']} 万元</span>
            		</p>
            	</li>
             {/loop}    
            </ul>
        </div>
    </div>
 
 
<!-- 商家二手车 end -->
   
 
  <div class="rbox2 ht" style="margin-bottom:10px;">
	    <div class="rtit">
	    {php $hotcars=get_hot_cars(0,4)}
	    	<h2>热门二手车</h2><a target="_blank" href="{url index.php?m=car&f=buy}">查看更多&gt;&gt;</a>
	        </div>
	        
      <ul class="rlist5">
             {loop $hotcars $v}
                             <li><div class="vgcon">
	                	<div class="vgbox">
		                	<a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="abox">
                    	<img width="120" height="80" class="boxc" alt="{$v['title']}" src="{echo DATA_DIR}files/{$v['picture']}"/>
		                	</a>
	                	</div>
                	</div>
                	<p>
	                	<a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="carmoda" title="{$v['title']}">{$v['title']}</a><br>
	                	<span class="red">{$v['price']} 万元</span><br>
	                	                	</p>
	                
               	</li>
               	{/loop}
             </ul>
  </div>
  
 
   
</div>
 
 
 
<div class="area">
<!-- 二手车列表 start -->
<div class="left1">
    	<div class="tit">
    		<h2>最新求购信息</h2>
            <a href="{url index.php?m=car&f=qiugou}" target="_blank" class="more">查看更多&gt;&gt;</a>
        </div>
        <div class="lbox1">
        	<ul class="llist">
            {php $i=0;}
            {php $hotqiugou=get_host_qiugou(12);}
            
            	<li class="th"><span class="num01">&nbsp;车源名称</span><span class="num02">价格</span><span class="num03">车龄</span><span class="num04">发布日期</span></li>
                 
                 {loop $hotqiugou['data'] $v}
                                <li>
                	<span class="num01">&middot;
                		<a href="{url index.php?m=car&f=qiugou&id=$v[id]}" target="_blank" title="{$v['title']}">{$v['title']}</a>
                	</span>
                	<span class="num02">{if $v['price']>0}{$v['price']}万{else}面议{/if}</span>
                	<span class="num03">{$hotqiugou['age'][$v['age']]}&nbsp;</span>
                	<span class="num04">{gdate('Y-m-d',$v['created'])}</span>
                </li>
                {php $i++;}
                {if $i==6}
                 </ul>
            	<ul class="llist">
            	<li class="th"><span class="num01">&nbsp;车源名称</span><span class="num02">价格</span><span class="num03">车龄</span><span class="num04">发布日期</span></li>
                {/if}
                {/loop}
                
                
            </ul>
        </div>
     </div>
 
   
<!-- 二手车列表 end -->
 
<!-- 最新求购列表 start -->
 
 
 
 
 {php $gous=get_latest_qiugou(4);}
<div class="rbox2">
	<div class="rtit">
    	<h2>热门求购信息</h2><a href="{url index.php?m=car&f=qiugou}" target="_blank">查看更多&gt;&gt;</a>
    </div>
    <ul class="rlist3">
    	       {loop $gous['data'] $v}
    	                	<li>
                		<span class="time">{gdate('Y-m-d',$v['created'])}</span>
                		
                		<a target="_blank" href="{url index.php?m=car&f=qiugou&id=$v[id]}" title="{$v['title']}">{$v['title']} / {$v['price']}万左右 / 车龄 {$gous['age'][$v['age']]}               		</a>
                	</li>
           {/loop}     	
         
               
    </ul>
</div>
</div>


 
<div class="area">
<!-- 二手车列表 start -->
<div class="left1">
    	<div class="tit"> {php $pinggus=get_latest_pinggu(4);}
    		<h2>最新评估答疑</h2>
            <a href="{url index.php?m=car&f=pinggu}" target="_blank" class="more">查看更多&gt;&gt;</a>
        </div>
        <div class="lbox1">
        	<table class="gctable">
                   	
                   {loop $pinggus $v}
                   <tr>
	                   	<th style="line-height:22px;text-align:left;border-bottom:0 none;"><font color="#009900"><b>问：</b></font>{$v['description']} [{gdate('Y-m-d',$v['created'])}]</th>
	       
                   	</tr>
   			<tr> 
			<td style="line-height:22px;text-align:left;border-bottom:1px dashed"><font color="#FF0000"><b>答：</b></font>{$v['replay']}</td>
		</tr><tr> 
			<td style="line-height:15px;border:0 none;">&nbsp;</td>
		</tr>
		{/loop}
	              </table>
        </div>
     </div>
 
   
<!-- 二手车列表 end -->
 
<!-- 最新求购列表 start -->
 
 
 
 
 {php $pingce=news_pingce(13);}
<div class="rbox2">
	<div class="rtit">
    	<h2>汽车评测</h2><a href="{url index.php?m=car&f=news&cid=7}" target="_blank">查看更多&gt;&gt;</a>
    </div>
   <ul class="rlist_rnews">
    {loop $pingce $v}
        <li><a href="{url index.php?m=car&f=news&id=$v[aid]}" target="_blank">{$v['title']}</a></li>
    {/loop}
        </ul>
  
</div>
</div>

<!-- 帮助中心4 end -->
<!--友情链接 开始-->
<div class=area>
<div class=tit>
<h2>友情链接</h2></div>
<div class=cbox>
<div class=link1>
{php $link=get_friendlink(30);}
{loop $link $v}
<a href="{$v['url']}" target=_blank {if $v['highlight']} style="font-weight:bold;"{/if}>{$v['name']}</a>&nbsp;
{/loop}
</div>
</div>
</div>
<!--友情链接 结束-->
{template footer}